﻿using Basic.HrRemoteModel.Emp;
using Basic.HrRemoteModel.Emp.Model;
using Basic.OAGatewayModule.ExtendService.Interface;

namespace Basic.OAGatewayModule.ExtendService
{
    internal class EmpService : IEmpService
    {
        public string GetName ( long id )
        {
            return new GetEmpName
            {
                Id = id
            }.Send();
        }
        public EmpBasicDatum[] GetBases ( long comId, long[] empId )
        {
            return new GetEmpBasics
            {
                CompanyId = comId,
                EmpId = empId
            }.Send();
        }
        public EmpBase[] Search ( EmpGetQuery query )
        {
            return new SearchEmp
            {
                Param = query
            }.Send();
        }
    }
}
